package me.zklh.transaction.domain.types;

import java.math.BigDecimal;
import java.util.Currency;

public class Money implements Comparable<Money>{

    private BigDecimal amount;

    // 币种
    private Currency currency;

    public Money(BigDecimal amount, Currency currency) {
        this.amount = amount;
        this.currency = currency;
    }

    public Currency getCurrency() {
        return currency;
    }

    @Override
    public int compareTo(Money o) {
        return this.amount.compareTo(o.amount);
    }


    public Money add(Money money) {
        return null;
    }


    public Money subtract(Money money) {
        return null;
    }
}
